var express = require("express");
var router = express.Router();

let data = [
  {
    id: 1001,
    type: 1,
    product_name:
      "6罐装 | 澳洲a2 Platinum 白金版 幼儿配方奶粉3段 (1-3岁)900g/罐 新西兰原装进口",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/FG09mLPauEXSwfx4ORVe5Q.jpg_800w_800h_4e",
    product_price: 1410,
    product_vip_price: 1230,
    product_describe:
      "【一单最多拍6罐，多拍不发货】a2Platinum®含全A2 β-酪蛋白，助力宝宝营养成长",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/FG09mLPauEXSwfx4ORVe5Q.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/vSLc1KbpBvONSwEFklHjxg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/s2HrIyaUen4BqfVnoSfkSw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/rIIvGxATCMZF0igOfHKgvQ.jpg_800w_800h_4e",
    ],
  },
  {
    id: 1002,
    type: 1,
    product_name: "新国标皇家美素佳儿(Friso)婴幼儿配方奶粉3段(12-36个月)800g",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/dDlB8oCdVaudO16EKkoB2w.png_800w_800h_4e",
    product_price: 356,
    product_vip_price: 320.4,
    product_describe: "生产日期：23年7月左右",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/dDlB8oCdVaudO16EKkoB2w.png_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/ZStI682U3RcV6nibNwn5_w.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/jbYEM4s8f_2smuF5exj57g.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/cvnF0qQNAhWiDe5g2GTBgw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/rnoSyS-jWUcrLo_1uhbXsQ.jpg_800w_800h_4e",
    ],
  },
  {
    id: 1003,
    type: 1,
    product_name: "爱他美[原卓萃 新国标]卓傲幼儿配方奶粉(12—36月龄,3段) 800g",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/s6fT_1q37C2xLHXMBfGn-g.png_800w_800h_4e",
    product_price: 239,
    product_vip_price: 228,
    product_describe: "新国标 新升级 全液态蛋白入料一次成粉 ",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/s6fT_1q37C2xLHXMBfGn-g.png_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/EKrt8Pm-C7EHhiBKTT-kWQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/txYpzForWlYU4g_F3nvSvA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/TCd64uaSfjXKmQKPdQ0EUA.jpg_800w_800h_4e",
    ],
  },
  {
    id: 1004,
    type: 1,
    product_name:
      "6罐装 | Aptamil 澳洲爱他美 白金版 (土豪金)3段 婴幼儿配方奶粉(1-3岁)900g",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/JVjhvH5vkqc8wcradju2GA.jpg_800w_800h_4e",
    product_price: 1290,
    product_vip_price: 1230,
    product_describe:
      "配方全新升级-视力UP特别添加叶黄素，包装全新升级-高端白色色调，绿色可回收材料，配方更先进、DHA由25%提升至42%、更丰富的叶黄素、天然乳汁更全面。",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/JVjhvH5vkqc8wcradju2GA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/U7kDsntPxOvdgqw_roDK6A.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/J3_rNyKb_p5In0NpChJh1Q.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/fjkRfBrzmLElmA_Ta9Rclw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/XBccpunt8h3DPZXU4xyKLA.jpg_800w_800h_4e",
    ],
  },
  {
    id: 1005,
    type: 1,
    product_name: "君乐宝(JUNLEBAO)乐铂3段 12-36个月 幼儿配方奶粉808g",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/I7YwX-dlwHgeUD8cM-oCpA.jpg_800w_800h_4e",
    product_price: 140,
    product_vip_price: 140,
    product_describe: "咨询客服享特惠",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/I7YwX-dlwHgeUD8cM-oCpA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/YYCJMbBfsGmY_aViQ-Jzqw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/6i_1BLOJKDyA9nHQncVQog.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/yKEHdNrGixMvsbMUtQ9uog.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/3Eq_DlgKVAkWGHJMLtYpig.jpg_800w_800h_4e",
    ],
  },
  {
    id: 1006,
    type: 1,
    product_name: "美赞臣蓝臻幼儿配方奶粉含乳铁蛋白(12-36月龄.3段)820gx1罐",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/WJzZCHfBlRHF-B11AKyWRw.jpg_800w_800h_4e",
    product_price: 336.66,
    product_vip_price: 302.99,
    product_describe: "优质奶源 荷兰进口",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/WJzZCHfBlRHF-B11AKyWRw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/YJbkXHn5C3CgYLEFXTH7QQ.png_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/2iDKJMl98JxYV8mRC-T-aw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/e7DG2pNBgXY0Se__8Q0QmA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/MI7mi17YOcokExkjCl9FYw.jpg_800w_800h_4e",
    ],
  },
  {
    id: 1007,
    type: 1,
    product_name:
      "[新国标]佳贝艾特(kabrita)幼儿配方羊奶粉悦白3段(12-36个月)400g(荷兰原罐进口)",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/AvMQBUWTexWR6pDRBndYmg.jpg_800w_800h_4e",
    product_price: 168,
    product_vip_price: 131,
    product_describe: "戳券再拍，推客订单不参与苏宁卡活动~",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/AvMQBUWTexWR6pDRBndYmg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/RCRqK-uZeSnuPHhD1iZ7pw.png_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/TDEtSGRWpBMg0U26OCp8dA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/FdLgz6_GZXAtahIIJJ4EaA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/Z1W9NeRCwIbKsYlyN6LVmA.jpg_800w_800h_4e",
    ],
  },
  {
    id: 1008,
    type: 1,
    product_name: "佳贝艾特(Kabrita)悦白幼儿配方羊奶粉3段(1-3岁)800g*7罐",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/sPOdoXp95iMABZ_GnaNSew.jpg_800w_800h_4e",
    product_price: 1953,
    product_vip_price: 1953,
    product_describe: "单笔实付满999加赠30元苏宁卡，加入会员享双倍购物积分！",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/sPOdoXp95iMABZ_GnaNSew.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/8VIeUlHDCUVPezN9ZFk1oQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/gLdiFJNJoxvLDrFQBzccFg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/Ma9GNMgogjh0YPz2KKkuiw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/aboM0Eosx2yRFejkgDVVSQ.jpg_800w_800h_4e",
    ],
  },
  {
    id: 1009,
    type: 1,
    product_name:
      "新国标惠氏启赋(Wyeth illuma)有机奶粉3段 爱尔兰进口 12-36月幼儿配方 810克(罐装)23年3月份前",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/Ek-apdorLewXHwxnQuCeXw.jpg_800w_800h_4e",
    product_price: 211,
    product_vip_price: 189,
    product_describe: "爱尔兰原罐进口 有机系列",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/Ek-apdorLewXHwxnQuCeXw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/YqG2JeSrfc1Tki2ocFY1-A.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/23f1A7WQTF00EG-8XWUh4A.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/_sR1oIwg8scGXb0PXv27IQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/Xadn6uCmur5OADPfGTWo_w.jpg_800w_800h_4e",
    ],
  },
  {
    id: 1010,
    type: 1,
    product_name: "爱他美领熠幼儿配方奶粉 3段 (适用于1-3岁)800G",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/hxKhDC5e5ZmNXm_vkEi92A.png_800w_800h_4e",
    product_price: 338,
    product_vip_price: 338,
    product_describe: "长效益生自护 时刻领熠未来",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/hxKhDC5e5ZmNXm_vkEi92A.png_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/3YURErAP2WIzgNaCJqWieA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/7ZpiEk-L3jdcqOpqcbhIow.png_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/hAkNcGtAiMB7NDqoNcq2Kg.jpg_800w_800h_4e",
    ],
  },
  {
    id: 2001,
    type: 2,
    product_name:
      "好奇成长裤金装超薄云柔纸尿裤婴儿尿不湿NB-3XL全尺码袋装 品牌直供",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/TnhG0PwY4J8vDbdz6CPhfA.jpg_800w_800h_4e",
    product_price: 56,
    product_vip_price: 48,
    product_describe:
      "云朵般柔软：采用内外蓬蓬热风表层，手感像云朵般蓬松柔软； -0.3cm薄薄一片超大吸",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/TnhG0PwY4J8vDbdz6CPhfA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/ptTSKq3N7pJSb2RqcZGVGw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/qxrJ5rKf-QSKdy5PmmZ-9Q.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/2DwxW6oKXDmXMit28wT4aQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/_Ea2wb9ZvpzL5mr_u-lOXQ.jpg_800w_800h_4e",
    ],
  },
  {
    id: 2002,
    type: 2,
    product_name:
      "诚人成人纸尿裤XL特大号老年人男女经期专用尿不湿纸尿片老人用经济装",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/U18rFuggApuWkmTL9XNytg.jpg_800w_800h_4e",
    product_price: 44.9,
    product_vip_price: 44.9,
    product_describe: "加大号 胖人专用",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/U18rFuggApuWkmTL9XNytg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/Ic40H8vgJJtQG5JSQ_BA0w.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/AEIe9Jtl7KZMmNH5OY1OvQ.png_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/EOrgDbJx3jJKyhe9b6KIqg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/tII5YJei2ZZCcX1xL_bzCA.jpg_800w_800h_4e",
    ],
  },
  {
    id: 2003,
    type: 2,
    product_name:
      "日本进口花王(Merries)妙而舒经典款拉拉裤特大号XXL26片(15-28kg)新生儿出生婴儿男女宝宝学步裤尿不湿",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/d2lrRPScdiZFhr0swenVcw.jpg_800w_800h_4e",
    product_price: 97.5,
    product_vip_price: 78,
    product_describe: "原装进口拉拉裤 随形贴合 自在学步",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/d2lrRPScdiZFhr0swenVcw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/9BoUhah9iK1I1s79hcm3-A.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/eDPlj4JCt-ZBDMNyd4pScA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/FHNAdXu_BNh5i3CHBoCxHA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/buvaFIgVtzQsF4_elHvwjw.jpg_800w_800h_4e",
    ],
  },
  {
    id: 2004,
    type: 2,
    product_name:
      "可靠吸收宝成人拉拉裤M码 男女老年人内裤型纸尿裤尿不湿 整箱大包装16片*6包",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/xS_WCw07ZOC5xLxzroke4w.jpg_800w_800h_4e",
    product_price: 187.5,
    product_vip_price: 135,
    product_describe: "家人的放心选择",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/xS_WCw07ZOC5xLxzroke4w.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/NAdiOedG7bZnzRoJ_G93YQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/0SNKUHymDmvxkL8C4G36tg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/oaL5-my7qO9f8yuTOkK8ng.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/VIhIDHUgryY1Vur_zNDLfQ.jpg_800w_800h_4e",
    ],
  },
  {
    id: 2005,
    type: 2,
    product_name:
      "优酷熊婴儿拉拉裤超薄透气XXL100片(12kg-17kg)男女宝宝儿童成长裤M L XL新生儿云柔尿不湿加智能尿显",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/L6YhiJ29kCup3yRQEe2leQ.jpg_800w_800h_4e",
    product_price: 79.9,
    product_vip_price: 79.9,
    product_describe: "0.2CM超薄全芯体、3D云柔珍珠棉表层、智能尿显",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/L6YhiJ29kCup3yRQEe2leQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/fsKCZfr4_jVlMjZK_06cQg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/3g1ATxzJXg_r4qdigAcJ8A.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/2p7gCEP00flHUE3EjQavBA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/dQsoY5dp03VeYccc8TWlww.jpg_800w_800h_4e",
    ],
  },
  {
    id: 2006,
    type: 2,
    product_name: "贝亲婴儿纸尿裤(蚕丝蛋白系列)L码 32片",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/2P3kXWUBLeM5wNsyTzRx1g.jpg_800w_800h_4e",
    product_price: 52,
    product_vip_price: 46.8,
    product_describe: "蚕丝蛋白芦荟提取物洋甘菊提取物自营新入驻",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/2P3kXWUBLeM5wNsyTzRx1g.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/FgKpfAIC_-JjDNhhHD1elw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/Pz6syG1SmwSmvhg2Zqlo5Q.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/wm-C8tzY8YeYcE8h1PbhGg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/AlMthDD41ercd8Tf3Uuqrw.jpg_800w_800h_4e",
    ],
  },
  {
    id: 2007,
    type: 2,
    product_name:
      "好奇皇家御裤婴儿纸尿裤NB66/S56/M46/L38/XL30丝柔超薄成长裤L38/XL30/XXL28/XXXL24",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/o7rOsHIHxd_7EpcsaunTOQ.jpg_800w_800h_4e",
    product_price: 129,
    product_vip_price: 118,
    product_describe:
      "厂家直供，触感细腻柔软。天然弱酸面层更接近肌肤，不刺激，宝宝不易红屁屁 ",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/o7rOsHIHxd_7EpcsaunTOQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/zssjdf2yyJCFboRBCcm-lA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/2brflDL2hp0ntAj9eZLUFA.png_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/xR-yKshhWucXjXJudz9EHw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/_EIo_VpVSFJXw1yLsjSamQ.jpg_800w_800h_4e",
    ],
  },
  {
    id: 2008,
    type: 2,
    product_name:
      "花王(MERRIES)纸尿裤L号54片大码腰贴式婴幼儿通用尿不湿日本进口",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/M3KM_09D-_aDsGOo65-LpA.jpg_800w_800h_4e",
    product_price: 79.9,
    product_vip_price: 79.9,
    product_describe: "日本进口，柔软透气",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/M3KM_09D-_aDsGOo65-LpA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/Ca25lT9IOHwVkapWcsyhSQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/DruZc181vvMRLgX4DrLUYg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/yRxlzmdyysqorb8PoAA1_Q.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/EY1neCGxdcNoeg8CazvF9w.jpg_800w_800h_4e",
    ],
  },
  {
    id: 2009,
    type: 2,
    product_name: "帮宝适(Pampers)纸尿裤小码S164片婴儿尿不湿超薄干爽尿裤",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/RyMkPxNr-Hp6i2j-N4rQVA.jpg_800w_800h_4e",
    product_price: 134,
    product_vip_price: 134,
    product_describe: "轻薄透气 持久干爽",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/RyMkPxNr-Hp6i2j-N4rQVA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/CKZKXULwlIlC0gZMosxAlQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/dOFf9p3q05SqfLafcgLCWQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/A1dSVFAaMfIPtocUW7rSUw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/xqiW6JJNhCSNb-VmcaQiog.jpg_800w_800h_4e",
    ],
  },
  {
    id: 3001,
    type: 3,
    product_name:
      "亨氏(Heinz)婴儿营养米粉组合装含益生元400g*2盒 宝宝辅食 婴儿米粉米糊新老包装随机",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/6NRGuYgq6v0Ypahl51dC-g.jpg_800w_800h_4e",
    product_price: 49.9,
    product_vip_price: 49.9,
    product_describe: "冲调好口味",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/6NRGuYgq6v0Ypahl51dC-g.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/aUMdTsJ02YwrBUyXuoUUIg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/RpfJQ0Tdx5kUdLE7xn_TCA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/Ke6B7lmLBEhg-LxbRLrmqQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/PeEe4LMN8bF21-oA3Kl-Yg.jpg_800w_800h_4e",
    ],
  },
  {
    id: 3002,
    type: 3,
    product_name: "Little Freddie 小皮 豌豆菠菜苹果泥 100g",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/WgVui15bGTDKQ_BG2lE1qg.jpg_800w_800h_4e",
    product_price: 22.9,
    product_vip_price: 19.9,
    product_describe: "干净配料表 全球好食材 ",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/WgVui15bGTDKQ_BG2lE1qg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/iwoTSX4j748AT6EF0_RoRQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/ZX4ETRhrAnUx0b0_KoTA6w.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/lxlNTaXn_hDTZy-T7iPBdA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/pZR5lPtud8l9vDtBqNAasw.jpg_800w_800h_4e",
    ],
  },
  {
    id: 3003,
    type: 3,
    product_name: "唯新食品 高蛋白 海苔芝麻肉酥115g (口味丰富,健康营养)",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/fgbzxQmVA6oH8fmdOlbDLA.jpg_800w_800h_4e",
    product_price: 38.9,
    product_vip_price: 27.9,
    product_describe:
      "鲜香酥心佐餐小食，入口即化，口口香酥，富含高蛋白。 营养丰富美味可口，酥松柔软，绵而不腻",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/fgbzxQmVA6oH8fmdOlbDLA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/mMowv69mBTDXAYR_rxXkrA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/dbDPCk_ZS2ZWka2_u5ms7Q.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/a1eVF25hnZxXRP7w_4fR2g.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/gA7Xc-7pUXguDzbpPTW5og.jpg_800w_800h_4e",
    ],
  },
  {
    id: 3004,
    type: 3,
    product_name: "唯新 高蛋白 特制肉酥 肉松135g*2罐 入口即化 口感味美",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/DCWZzT4dovGHm03ABUSlqA.png_800w_800h_4e",
    product_price: 77.8,
    product_vip_price: 49,
    product_describe:
      "色泽金黄，蓬松不油腻。口味清淡，老少皆宜。纤维细小，口感细腻，入口松软味香易消化吸收 ",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/DCWZzT4dovGHm03ABUSlqA.png_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/0CtIY8qYQMAk5iLpSXmssg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/sYElCdEhTyxGI8ttiB2R3w.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/Jmg4a2buc5R4rRxRndP4xQ.png_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/ZogDeU-Dh2tceNA442z9xQ.jpg_800w_800h_4e",
    ],
  },
  {
    id: 3005,
    type: 3,
    product_name: "Little Freddie 小皮 胡萝卜苹果泥 100g",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/x8UZ3v4wtEWiy3fK6478jg.jpg_800w_800h_4e",
    product_price: 22.9,
    product_vip_price: 19.9,
    product_describe: "干净配料表 全球好食材 ",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/x8UZ3v4wtEWiy3fK6478jg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/2UppOVEIhHL_a0n3hTt4HA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/XxiSZFNQY2Pb_Mh5RUasTw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/2suggHbMkFZlrMjK7yzcgw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/9OKKwOkk9sm-UDrfOsgusA.jpg_800w_800h_4e",
    ],
  },
  {
    id: 3006,
    type: 3,
    product_name: "亨氏 (Heinz)乐维滋果汁泥苹果蓝莓果汁泥120g",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/LuWSr9DF7966k5wH8yJKLQ.jpg_800w_800h_4e",
    product_price: 12.8,
    product_vip_price: 12.8,
    product_describe: "营养均衡不添加防腐剂 ",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/LuWSr9DF7966k5wH8yJKLQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/y0gmtqoCmegcmm8peuEUDg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/JpJZuBTGVFpwXeBoT0dteQ.png_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/hEOB4U0Hf7Qem831Rmc2Eg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/1OwFCgYHsO5QF6jPdbzFlQ.jpg_800w_800h_4e",
    ],
  },
  {
    id: 3007,
    type: 3,
    product_name: "农夫山泉饮用天然水 婴儿水 母婴水 1L*8瓶整箱",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/bKFrX2Erv-9kod6g2njtUw.jpg_800w_800h_4e",
    product_price: 72,
    product_vip_price: 72,
    product_describe: "婴儿水 母婴水 低钠淡矿 适合婴幼儿",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/bKFrX2Erv-9kod6g2njtUw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/_63u9HSd6kcM0D1VdK6iaA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/DctSVXoZSQdFwUfOce8r_Q.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/X0pojpSELdgVZtCmwSmwzQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/34X1kHruR39W9SatvPModg.jpg_800w_800h_4e",
    ],
  },
  {
    id: 3008,
    type: 3,
    product_name: "爷爷的农场牛油果油250ml",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/FY34P-Z-R2pStOTAgS33Vw.jpg_800w_800h_4e",
    product_price: 121,
    product_vip_price: 101,
    product_describe: "欧盟食品标准 国家一级品质 传统冷榨工艺",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/FY34P-Z-R2pStOTAgS33Vw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/UkLVWMDa3dZdA7I983gb_Q.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/wh_Un0k5bJCc9tHnpFbMag.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/freituJiQ-IWH96rxrQR3g.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/FFMs6fmrs3Xe_YRltZZqmA.jpg_800w_800h_4e",
    ],
  },
  {
    id: 3009,
    type: 3,
    product_name: "小皮Little Freddie 婴幼儿原味有机大米粉原装进口160g",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/9X6ldJdBcnzn-cojc_FBUA.jpg_800w_800h_4e",
    product_price: 59.9,
    product_vip_price: 53.9,
    product_describe: "二价高铁好吸收",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/9X6ldJdBcnzn-cojc_FBUA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/JyKZRlLzPqsj-uORytZTmg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/PIQcpHWu-8P7N_9QpQcHug.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/xeFuCWgnjRc_L0CPmBQrOQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/EcB7uWCH_wDMeTRSp0dzDg.jpg_800w_800h_4e",
    ],
  },
  {
    id: 4001,
    type: 4,
    product_name: "贝亲pigeon宽口径彩绘PPSU奶瓶160ml(配S号奶嘴)AA216 猫狗狂欢",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/3ZAwz0riiwinoiDmRtQbsA.jpg_800w_800h_4e",
    product_price: 85.3,
    product_vip_price: 46.77,
    product_describe: "奶嘴含衔线，奶嘴柔软度升级，全新瓶体造型",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/3ZAwz0riiwinoiDmRtQbsA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/anNH_UdQ5rFaqptCzLwWWg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/LblR575uJTGNsfsGXnHYxw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/Hq6TbgL3QFxebTJlRKVt0w.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/26hxtOB4nRyrowfRzb0XDQ.jpg_800w_800h_4e",
    ],
  },
  {
    id: 4002,
    type: 4,
    product_name: "AA122 贝亲早产儿-玻璃奶瓶100毫升(医院用)++练习奶嘴wS-2",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/kIIeBHfrYSFIxiURSNmA6w.jpg_800w_800h_4e",
    product_price: 158,
    product_vip_price: 82.2,
    product_describe: "奶嘴柔软",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/kIIeBHfrYSFIxiURSNmA6w.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/ZbqOuTAPFGdVCHf6LbkqRA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/ohkgLA9-67caiAEELMb8sQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/-loIsrwusRtUqEO0R3XPTw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/L-SGOwFcUTJ31ChaofpK2Q.jpg_800w_800h_4e",
    ],
  },
  {
    id: 4003,
    type: 4,
    product_name:
      "飞利浦新安怡婴儿新生0到3个月SCF678/33 宽口径自然玻璃奶瓶 奶嘴0月+/慢流量/6oz/160ml",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/M1N9aQRTzgflTZOSQBr-pw.jpg_800w_800h_4e",
    product_price: 149,
    product_vip_price: 84,
    product_describe: "宽口径自然顺畅玻璃奶瓶，亲喂瓶喂轻松切换",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/M1N9aQRTzgflTZOSQBr-pw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/W9qggeVyF2ukwz2lIkduvg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/1YSmM_XCQzvrmZwsCCzxNQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/4Tf8CtLK9q_dVC0OsVX4aw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/Il8GFAya2LkWhaXq-ZJxmA.jpg_800w_800h_4e",
    ],
  },
  {
    id: 4004,
    type: 4,
    product_name:
      "NUK耐高温240ml宽口玻璃彩色迪士尼维尼奶瓶(带初生型硅胶中圆孔奶嘴,适合0-6个月)",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/MrmHkJ7cMIGO02HHdePjZw.png_800w_800h_4e",
    product_price: 69,
    product_vip_price: 49,
    product_describe:
      "【高硼硅靓丽印花，耐高温易冲洗】宽口径方便冲奶和清洗、奶瓶密封盖",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/MrmHkJ7cMIGO02HHdePjZw.png_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/6rYBnIzX01QqWjTn3g74dQ.png_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/wXNdAARezrBcghC45zHNGQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/Vwg6QEsCpYnG1WOsvubRRw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/wQUBk7RnwIitjtcK6IGUlA.jpg_800w_800h_4e",
    ],
  },
  {
    id: 4005,
    type: 4,
    product_name: "贝亲优享双边电动吸奶器QA85(赠储奶袋250ml*90片)",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/N0QEFssudQvXm8QmwQdZJw.jpg_800w_800h_4e",
    product_price: 489,
    product_vip_price: 290,
    product_describe: "5模式，10档位，吸乳舒适随心",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/N0QEFssudQvXm8QmwQdZJw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/eXcYnp49rGkeKyLDw3kCGg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/XHmabrwxUbFLsZbSolOPsg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/OLyxLIZHRhGK4ncx62pggg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/nbOeuz456dKm083gZ-HhaQ.jpg_800w_800h_4e",
    ],
  },
  {
    id: 4006,
    type: 4,
    product_name:
      "美德乐享韵免手扶电动吸奶器智能轻奢触摸屏手机操控挤奶压奶无痛吸乳",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/w8V5xjpRpyPZWPT9btJ63g.jpg_800w_800h_4e",
    product_price: 2440,
    product_vip_price: 2230,
    product_describe: "无痛“排空”！!全景触摸屏，长续航，小巧便携",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/w8V5xjpRpyPZWPT9btJ63g.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/l1M01ax6BjcRUHb7-M3wfA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/LnagWVzBfVkNnoqRZr2Oyw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/9M0Fb-BeUhgZnpdYk_H9-Q.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/6wpiC1nbsr4vlWcWg3fKkA.jpg_800w_800h_4e",
    ],
  },
  {
    id: 4007,
    type: 4,
    product_name:
      "开优米(Kiuimi)儿童餐具套装 宝宝婴儿防摔碗吸盘辅食碗316不锈钢注水保温 绿色款(单碗)",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/1Ps4X2tkve531YhAW2HbBA.jpg_800w_800h_4e",
    product_price: 49,
    product_vip_price: 39,
    product_describe: "食品级316不锈钢 三层隔热 冷暖两用",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/1Ps4X2tkve531YhAW2HbBA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/LvBPtm-jXjzuBXli2VpFWQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/vMIA7Ss_bsdYD78UYRx1Sg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/0IZo1K5g0MvR199YR0Ps3Q.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/eczKBdjBB_intbVD01cVvg.jpg_800w_800h_4e",
    ],
  },
  {
    id: 4008,
    type: 4,
    product_name:
      "开优米(Kiuimi)儿童成长训练筷练习筷学习筷婴童筷宝宝勺子叉子餐具套装 粉色款",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/w4vRH1Ihpb4TQrsrEWT0zw.jpg_800w_800h_4e",
    product_price: 10.9,
    product_vip_price: 9.9,
    product_describe: "3指环定位，环保材质 筷人一步",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/w4vRH1Ihpb4TQrsrEWT0zw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/5TU_w9APazYDstUjFqBMUw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/ejYP8JYokxdGftueTFZGyA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/p7RI4P3jD_uNyUxJkZLlGw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/l-ZUxeyz6tz8TGhqkOX92A.jpg_800w_800h_4e",
    ],
  },
  {
    id: 4009,
    type: 4,
    product_name:
      "启初婴儿水润保湿面霜40g 婴童面霜 儿童保湿身体乳润肤乳宝宝护肤补水面霜 清爽补水滋润保湿 植物之初",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/Oyb-1Tmlb6jfokhIwMZJsg.jpg_800w_800h_4e",
    product_price: 41.8,
    product_vip_price: 37.6,
    product_describe:
      "蕴含初生胚米精华，加倍柔嫩新生肌，保护天然皮脂膜，舒缓保湿",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/Oyb-1Tmlb6jfokhIwMZJsg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/niX1u7_cCfgf0-oF0i_7wg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/BzMH6DUgL82HHiChVCHpPg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/lo4muxSXLOegjXXWYMNIJw.jpg_800w_800h_4e",
    ],
  },
  {
    id: 4010,
    type: 4,
    product_name: "郁美净儿童娇柔润肤霜25g*10盒 滋润保湿 护肤霜 宝宝面霜",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/H7y1-qHGDDbldFwjwB82Lg.jpg_800w_800h_4e",
    product_price: 39.9,
    product_vip_price: 35.9,
    product_describe: "婴幼儿洗护常备用品，富含鲜奶，滋润营养，呵护肌肤",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/H7y1-qHGDDbldFwjwB82Lg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/uodsh0e-rLIMH6bB1xr0MQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/cpCX8pgxyWi-gz36DvHFbQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/FvWQpBvLpvMoilwIlX4f7Q.jpg_800w_800h_4e",
    ],
  },
  {
    id: 4011,
    type: 4,
    product_name:
      "Dettol滴露经典松木衣物除菌液3L瓶装配合洗衣液消毒液婴儿衣物棉麻织物含有助洗成分辅助洗涤抑菌99.9%",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/BOUEsdVJzvf4tsH9zRczcQ.jpg_800w_800h_4e",
    product_price: 79,
    product_vip_price: 69,
    product_describe: "滴露除菌液 衣物专用",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/BOUEsdVJzvf4tsH9zRczcQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/sCSRFrQrfhmcMlqZ4b0fQQ.png_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/XGQa7WWVxr1cchKozjXdOw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/fJqtAScAM4ksWRzuw5C2sA.jpg_800w_800h_4e",
    ],
  },
  {
    id: 4012,
    type: 4,
    product_name:
      "Aveeno艾惟诺/艾维诺儿童洗发水沐浴露婴儿洗头膏沐浴液 每日倍护洗护二合一 354ml双支装",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/jxg--KlFdAeweP0gMcVZqw.jpg_800w_800h_4e",
    product_price: 112,
    product_vip_price: 100,
    product_describe: "一瓶两用-温和洗护-滋润皮肤-低泡洁净-原装进口",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/jxg--KlFdAeweP0gMcVZqw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/gGR4LQq6lMl5rDGRuy5Itg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/GYYjVXQhxOc_Gh_HHoXQbA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/2QAQxc8Jp_gSwCS94soH2Q.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/qDFfRY4MqJhqVXXwPXZx2A.jpg_800w_800h_4e",
    ],
  },
  {
    id: 5001,
    type: 5,
    product_name:
      "Quintus/Qtus昆塔斯Q5婴儿推车单手一键折叠自重收车可坐可躺婴儿车",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/WGbWeqHusmfMNUqD45I4EQ.jpg_800w_800h_4e",
    product_price: 3348,
    product_vip_price: 2948,
    product_describe: "一键折叠 自动收车 护脊硬靠背 加宽座舱",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/WGbWeqHusmfMNUqD45I4EQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/MRhvXT9yHvhjixo4GzNsFw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/BspzDE5ggC1SE7mWd-Uggg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/VWkhMrd3TD6LeZnp-gun5g.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/OxejPPS3SlndKRCgHs-cig.jpg_800w_800h_4e",
    ],
  },
  {
    id: 5002,
    type: 5,
    product_name:
      "婴儿推车二合一多功能高景观可坐躺双向避震折叠新生儿宝宝手推车",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/tZyaN7utANWYwFgm7GbvIw.jpg_800w_800h_4e",
    product_price: 3399,
    product_vip_price: 2999,
    product_describe: "可坐躺双向避震折叠推车",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/tZyaN7utANWYwFgm7GbvIw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/75WijyigV2TP-rbwgzlAHA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/-wp0yZ3FocfugAwBiodAEQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/XnOz8G4PchW_ZIeXuIyOhQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/L7-bFFf3qMYpz0QnY2S6rw.jpg_800w_800h_4e",
    ],
  },
  {
    id: 5003,
    type: 5,
    product_name:
      "呵宝hope婴儿推车可坐可躺轻便折叠儿童简易手推车新生宝宝伞车升级PLUS可拆棉垫四季通用约6-36个月适用",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/A3IkJJ-iWLsczmcVVQ7rVA.jpg_800w_800h_4e",
    product_price: 419,
    product_vip_price: 399,
    product_describe:
      "【前轮避震 后来刹车】【折叠体积小 可放后备箱】【轻轻一按 三挡调节】【单手便携收车】",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/A3IkJJ-iWLsczmcVVQ7rVA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/1eJmJN7KGM6g7LYomdd0CQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/H3hICcsAeRrBnVEqOaWRQg.png_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/vRER82DQ-Rl_NEIFxXvg5g.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/HuxPrZ1_nB9MMVuzXZjhOA.jpg_800w_800h_4e",
    ],
  },
  {
    id: 5004,
    type: 5,
    product_name:
      "儿童三轮车手推车 Babyjoey 英国儿童三轮脚踏车折叠宝宝1-3-5岁手推车自行车 骑士 蓝色",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/uI9Kb4EXQB2Yo2JcleuBzQ.jpg_800w_800h_4e",
    product_price: 578,
    product_vip_price: 520,
    product_describe:
      "360度旋转~亲子互动~一键折叠携带方便~大角度靠背宝宝更舒服~碳钢车架牢固~全车避震舒适",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/uI9Kb4EXQB2Yo2JcleuBzQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/AU9bAEzeNR5Lj6RVFkiEFQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/FC1_PLSyvD-tOZshuIXEgQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/WBktI04PmCa5z1Vwy4aAZw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/dbzavLuUfNJOVCHsarrbtw.jpg_800w_800h_4e",
    ],
  },
  {
    id: 6001,
    type: 6,
    product_name:
      "[1件5折价:28.5元]铅笔俱乐部童装男女童轻薄羽绒服90绒防钻绒宝宝外套保暖冬季",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/ilJ5OBNMl4EwAGdRLzstlw.jpg_800w_800h_4e",
    product_price: 57,
    product_vip_price: 49,
    product_describe: "上网上街上苏宁",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/ilJ5OBNMl4EwAGdRLzstlw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/MZz4w90MKCOvlUEjZni-FA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/wxcfsduME6mgFSday6zYkw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/nMVhAi-Sy4dfiFyAak6htA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/gsjGuxhfga8hAS7gGPVCag.jpg_800w_800h_4e",
    ],
  },
  {
    id: 6002,
    type: 6,
    product_name:
      "[1件5折价:25元]铅笔俱乐部童装秋季女童套头毛衣儿童大童花边高领针织衫",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/_XwBQuh-Qrhz6dEGlzSwNQ.jpg_800w_800h_4e",
    product_price: 50,
    product_vip_price: 40,
    product_describe: "上网上街上苏宁",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/_XwBQuh-Qrhz6dEGlzSwNQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/WXKGgAoU-9p4VAnkG8Hebg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/NVZ29bH9GyhZDBxQEpwhHg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/BGO738wBaDl8WuKox4fTtw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/32JhD2EOzm8BgE6FGzzYoQ.jpg_800w_800h_4e",
    ],
  },
  {
    id: 6003,
    type: 6,
    product_name: "[99元3件]米喜迪mecity童装女童喇叭袖毛织开衫",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/tJwqPtQGCUK_BRBdQTsi3g.jpg_800w_800h_4e",
    product_price: 269,
    product_vip_price: 199,
    product_describe: "美特斯邦威出游季专区2件3折 ",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/tJwqPtQGCUK_BRBdQTsi3g.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/FMgy18VTUGC6P6Thx00EOw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/dUTDEPm-ZXL7nsVbOh6ZJg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/mFisPMAkvl9cgBT6eJ3PPA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/U4PxTuV74MhDkahxEdr2yw.jpg_800w_800h_4e",
    ],
  },
  {
    id: 6004,
    type: 6,
    product_name:
      "史努比女童棉鞋冬季加绒二棉鞋皮面防水中大童女孩潮牌板鞋儿童鞋",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/lrI2tKUu2f3X-u9fdylodA.jpg_800w_800h_4e",
    product_price: 111,
    product_vip_price: 109,
    product_describe: "保暖舒适 云感轻盈 柔软回弹 防滑呵护",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/lrI2tKUu2f3X-u9fdylodA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/Vlat891EHnSJNhVbOGkTxw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/cqSag2PhphweMzDIK_iMag.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/FmR-5h2W1xbe859DkO_1-A.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/vo0Qk4N0vPECBDkjL4KJCQ.jpg_800w_800h_4e",
    ],
  },
  {
    id: 6005,
    type: 6,
    product_name: "耐克(NIKE)男女童运动鞋毛毛虫Dynamo Go儿童鞋 DZ2863-100",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/vOnnp-B4a5V-I-DhbFzrPA.jpg_800w_800h_4e",
    product_price: 316,
    product_vip_price: 296,
    product_describe: "热卖中",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/vOnnp-B4a5V-I-DhbFzrPA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/idy0RJq5AmUusZshvd2qsg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/9rnwdRMRAmnYweefExoizg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/ZaR8Blm0dr7YIPAre79HBw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/3HeA_D39_83eI0xtKH9AbA.jpg_800w_800h_4e",
    ],
  },
  {
    id: 6006,
    type: 6,
    product_name:
      "耐克(NIKE)男女婴童鞋运动鞋潮流毛毛虫轻便耐磨透气休闲鞋子 FZ5524-161",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/0jkiGc4Q1qb8Bbv3jop2iA.jpg_800w_800h_4e",
    product_price: 302,
    product_vip_price: 299,
    product_describe: "热卖中",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/0jkiGc4Q1qb8Bbv3jop2iA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/FITXllA96ZIJcqDSDB5hzg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/B9KTapPsuwQJpaWGSjMxDA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/3fnR-crvn9cG46pIUFA6Rg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/HJ9xFDgD0Ivd4436RTyUng.jpg_800w_800h_4e",
    ],
  },
  {
    id: 6007,
    type: 6,
    product_name:
      "KIDS MAM&DAD秋冬儿童保暖内衣套装纯棉女童秋衣秋裤中大童睡衣家居服",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/o65zz1AXsKn-Rv_FZbVwog.jpg_800w_800h_4e",
    product_price: 49.9,
    product_vip_price: 49.9,
    product_describe: "纯棉舒适 亲肤柔软 优质面料",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/o65zz1AXsKn-Rv_FZbVwog.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/bFVicW1tR9U0upzRY1PQbA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/5EgsVTGiHsUUMkqmuRlhrA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/0NwEggwh9UsXueLXRyxpWQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/hPkOn0MT4UU2L_IsrMdGQg.jpg_800w_800h_4e",
    ],
  },
  {
    id: 6008,
    type: 6,
    product_name:
      "[3件8.5折84.1元,叠加优惠券]唐狮睡衣女秋冬季珊瑚绒睡袍儿童长款学生爱家居服",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/sDo-K7cfINflT6RkQd6R1g.jpg_800w_800h_4e",
    product_price: 98.9,
    product_vip_price: 98.9,
    product_describe: "全场折起叠加优惠券",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/sDo-K7cfINflT6RkQd6R1g.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/PJfx2F-6X9wRptI5CX26TA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/EHroraBDoh94s0POZwRTHA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/ExpQ0pCljw7r2Qh2XufqTA.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/ZHuN_4yrI99tbmz81Bf2nA.jpg_800w_800h_4e",
    ],
  },
  {
    id: 7001,
    type: 7,
    product_name:
      "Hape复古万花筒红色科学实验儿童益智玩具3岁以上可旋转五彩世界男孩女孩玩具",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/UE9945IUJy0yBiobDyrciw.jpg_800w_800h_4e",
    product_price: 33,
    product_vip_price: 30,
    product_describe:
      "旋转万花筒，万花筒能呈现出五彩斑斓的变化，给予您和孩子无限想象的空间，而且灵巧便携。",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/UE9945IUJy0yBiobDyrciw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/q5rZJAakm8R0WvYkBbfZ8g.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/96_CfIC2JGJ5I7VNRcmopg==.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/z6vKQ06meE3X-ORPSsa5sg==.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/11Gni6fAyrgYDNJ90uXZGA==.jpg_800w_800h_4e",
    ],
  },
  {
    id: 7002,
    type: 7,
    product_name:
      "特宝儿(topbright)五轨竞速滑翔宝宝益智玩具1-3岁 男孩女孩玩具木质轨道车儿童玩具早教生日礼物 120402",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/xkEKQBXFhko5sBa7iMC9Gw.jpg_800w_800h_4e",
    product_price: 99.9,
    product_vip_price: 59.9,
    product_describe: "热卖中",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/xkEKQBXFhko5sBa7iMC9Gw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/vc5On6RUoOaLPo35SQJacw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/synFT5LU27IWiLYO6J9WHw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/CL_QPi2WNXmkHJBXuhlF4Q.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/aQZfmrpBhoDG4DBh6VB8Ow.jpg_800w_800h_4e",
    ],
  },
  {
    id: 7003,
    type: 7,
    product_name:
      "乐缔 儿童男女孩益智玩具3-4-5-6-7-8岁生日礼物小学生水彩笔画笔文具套装宝宝早教教具",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/dPks44fRgf2BvQLl8reitQ.jpg_800w_800h_4e",
    product_price: 39,
    product_vip_price: 35,
    product_describe:
      "乐缔 儿童男女孩益智玩具3-4-5-6-7-8岁生日礼物小学生水彩笔画笔文具套装宝宝早教教",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/dPks44fRgf2BvQLl8reitQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/O8YqzB7pq8zF-LZPVV17yg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/LvsbUnVvyqxCAi9poPNXng.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/f6T357awDosZXcTQiS7vFQ.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/p3QNC3j7vJsL2C8jE50_5g.jpg_800w_800h_4e",
    ],
  },
  {
    id: 7004,
    type: 7,
    product_name:
      "Hape森林动物游戏盒1-6岁多功能游戏盒绕珠百宝箱串珠大号儿童益智玩具男孩女孩玩具",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/MweLlPWRyW3X13Yh4o_uTw.jpg_800w_800h_4e",
    product_price: 1055,
    product_vip_price: 905,
    product_describe:
      "五合一多功能玩法：情景绕珠、分类配对和旋转齿轮、趣味打地鼠、轨道溜溜球、滑轨抓手",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/MweLlPWRyW3X13Yh4o_uTw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/zJ64IlCTbB-vcfxqE86tIg.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/fhZDl8nN2OuTCcY-0MSuWg==.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/oFc3iEYiFMuTlU8FdjvDWw==.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/SgqybJtSdV1e03AqWjK5iA==.jpg_800w_800h_4e",
    ],
  },
  {
    id: 7005,
    type: 7,
    product_name:
      "儿童遥控汽车越野车超大号 巨无霸1号蓝[六驱,耐摔,可变速,配前置大灯] [高配2电][质保一年][续航40-60分钟]",
    product_img:
      "https://imgservice.suning.cn/uimg1/b2c/image/NvUqGVghtLCeoGMgg7qW7g.jpg_800w_800h_4e",
    product_price: 298,
    product_vip_price: 198,
    product_describe:
      "店铺后台正在维护商品参数品牌信息等 更新中会有信息更新延迟 如有品牌参数等疑问可咨询客服",
    product_swpers: [
      "https://imgservice.suning.cn/uimg1/b2c/image/NvUqGVghtLCeoGMgg7qW7g.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/AbC3Lc2NmS_1HhCFNOrRQw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/Uz2nnRhUs-3WWozjSdL-Gw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/YNKxLgBPj7Tf2pXfQxYoBw.jpg_800w_800h_4e",
      "https://imgservice.suning.cn/uimg1/b2c/image/cbMJQQ8mMFgDwMQRgIEo6w.jpg_800w_800h_4e",
    ],
  },
];

let types = [
  {
    type: 1,
    title: "全球奶粉",
  },
  {
    type: 2,
    title: "尿不湿",
  },
  {
    type: 3,
    title: "营养辅食",
  },
  {
    type: 4,
    title: "喂养洗护",
  },
  {
    type: 5,
    title: "婴儿推车",
  },
  {
    type: 6,
    title: "童装童鞋",
  },
  {
    type: 7,
    title: "益智玩具",
  },
];

// const { types } = require("./classify");

// 首页列表分页
router.get("/list", function (req, res, next) {
  const { page } = req.query;

  if (page) {
    const data2 = [...data].sort((a, b) => {
      return a.product_price - b.product_price;
    });
    const data3 = data2.slice((+page - 1) * 10, +page * 10);
    res.json({
      success: true,
      data: data3,
      total: data.length,
    });
  } else {
    res.json({
      success: false,
      msg: "参数错误",
    });
  }
});

// 商品详情
router.get("/detail", function (req, res, next) {
  const { id } = req.query;
  if (id) {
    const detail = data.find((item) => item.id === +id);
    if (detail) {
      res.json({
        success: true,
        data: detail,
      });
    } else {
      res.json({
        success: false,
        msg: "参数错误",
      });
    }
  } else {
    res.json({
      success: false,
      msg: "参数错误",
    });
  }
});

// tag分类
router.get("/tag", function (req, res, next) {
  const { type } = req.query;
  if (type) {
    const list = data.filter((item) => item.type === +type);
    const title = types.find((item) => item.type === +type).title;
    if (title) {
      res.json({
        success: true,
        title,
        data: list,
      });
    } else {
      res.json({
        success: false,
        msg: "参数错误",
      });
    }
  } else {
    res.json({
      success: false,
      msg: "参数错误",
    });
  }
});

// 新增商品
let id = 10001;
router.post("/add", (req, res, next) => {
  const {
    product_name,
    type,
    product_img,
    product_price,
    product_vip_price,
    product_describe,
    product_swpers,
  } = req.body;

  if (
    !product_name ||
    !type ||
    !product_img ||
    !product_price ||
    !product_vip_price ||
    !product_describe ||
    !product_swpers
  ) {
    res.json({
      success: false,
      msg: "参数错误",
    });
  } else {
    data.push({
      id: id,
      product_name: product_name,
      type,
      product_img,
      product_price,
      product_vip_price,
      product_describe,
      product_swpers,
    });
    id++;
    res.json({
      success: true,
      msg: "新增成功",
    });
  }
});

router.post("/edit", (req, res, next) => {
  const {
    id,
    product_name,
    type,
    product_price,
    product_vip_price,
    product_describe,
  } = req.body;

  if (
    !id ||
    !product_name ||
    !type ||
    !product_price ||
    !product_vip_price ||
    !product_describe
  ) {
    res.json({
      success: false,
      msg: "参数错误",
    });
  } else {
    data.forEach((item, i) => {
      if (item.id == id) {
        data[i].product_name = product_name;
        data[i].type = type;
        data[i].product_price = +product_price;
        data[i].product_vip_price = +product_vip_price;
        data[i].product_describe = product_describe;
      }
    });
    res.json({
      success: true,
      msg: "编辑成功",
    });
  }
});

// 删除和批量删除
router.post("/remove", (req, res, next) => {
  const { ids } = req.body;
  if (!ids) {
    res.json({
      success: false,
      msg: "参数错误",
    });
  } else {
    const iids = ids.split(",");
    data = data.filter((item) => {
      return !iids.includes(item.id + "");
    });

    res.json({
      success: true,
      msg: "删除成功",
    });
  }
});

// console.log(data);

module.exports = {
  data,
  types,
  productRouter: router,
};
